﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ASPMVCUtil.Helpers.Html.Grid
{
    /// <summary>
    /// Class to send a result of an AJAX action
    /// </summary>
    public class GridAjaxActionResult
    {
        /// <summary>
        /// Id of affected record
        /// </summary>
        public string ID { get; private set; }
        /// <summary>
        /// Message to show
        /// </summary>
        public string Message { get; private set; }

        /// <summary>
        /// Creates a AJAX action result
        /// </summary>
        /// <param name="id">Id of affected record</param>
        /// <param name="mensaje">Message to show</param>
        public GridAjaxActionResult(string id, string message)
        {
            ID = id;
            Message = message;
        }
    }
}